package com.stu.service;

import com.stu.dao.IUserDao;
import com.stu.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zy
 * @date 2025/3/28
 */
@Service
public class UserServiceImpl implements IUserService{
    @Autowired
    private IUserDao userDao;

    public UserServiceImpl() {
        System.out.println("UserServiceImpl构造执行了");
    }

    @Override
    public User addUser(User user) {
        System.out.println("UserServiceImpl添加user对象");
        userDao.addUser(user);
        return user;
    }
}
